extends ColorRect

func _fade_out():
	var tween=create_tween()
	tween.tween_property(self,"color:a",0,0.5)
	return tween

func _fade_in():
	var tween=create_tween()
	tween.tween_property(self,"color:a",1,1)
	return tween
